﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;

namespace BUS
{
    public class MessageBUS
    {
        MessageDAO messageDAO = new MessageDAO();

        public IEnumerable<Message> GetMessages(int userId)
        {
            return messageDAO.GetMessages(userId);
        }

        public void AddMessage(Message message)
        {
            messageDAO.AddMessage(message);
        }

        public IEnumerable<Message> GetMessages(int[] roomIds)
        {
            return messageDAO.GetMessages(roomIds);
        }
    }
}
